#include "memberevent.h"
#include "component.h"

MemberEvent::MemberEvent(const QString& name, const YYLTYPE& loc)
    : Node(loc), m_name(name)
{
}

Component* MemberEvent::component() const
{
    return dynamic_cast<Component*>(parentNode()->parentNode());
}
